home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
d
/
devioustools19.dms
/
devioustools19.adf
/
utils
/
004.lzx
/
clidt
/
doc
/
cli_dtc.doc
next >
Wrap
Text File
|
1978-01-22
|
1KB
|
48 lines
TABLE OF CONTENTS
cli.datatype/cli.datatype
cli.datatype/cli.datatype cli.datatype/cli.datatype
NAME
cli.datatype - data type for launching extern programs and
displaying the command's standard output
FUNCTION
This datatype launches an extern command and displays the standard
output of that command. This is useful to view the contents of a
archive like lha or tar archives without writing a complete datatype.
The standard output is placed in a tempory file in "T:", because the
text.datatype can't handle pipes.
PREFS
The cli datatype is configured by a preference file "cli.prefs" in
"PROGDIR:Prefs/Datatypes/" or "Env:Datatypes/".
The file is parsed using ReadArgs() with the following template :
"DATATYPE/A,COMMAND/F/K/A"
DATATYPE - specifies the datatype
COMMAND - specifies the command to launch for that datatype, a "%s"
in the command string is replaced by the real filename.
EXAMPLE
; cli.datatype preference file
Lha COMMAND=lha v %s
Tar COMMAND=tar tvf %s
METHODS
OM_NEW - create a new object and launch the extern command
OM_DISPOSE - delete the object
TAGS
none
SEE ALSO
text.datatype, ascii.datatype